Xbasic

AlphaCloud::APIRegister Method

Syntax

AlphaCloud::API::Register as A5Storage::CallResult ([ImplementationType as C [, ForceServerMode as L]])

Arguments

ImplementationTypeCharacter

This argument is for internal use only.

ForceServerModeLogical

This argument is for internal use only.

Returns

resultA5Storage::CallResult

Check the Success property of the returned object to be sure there were no errors registering the API.

Description

Register() is used to make the Alpha Cloud API available to Xbasic.

The first call to Register() will check for the latest version of the API and install it if necessary. That first call can be expensive so Alpha Anywhere and Alpha Anywhere Application Server do NOT automatically install the Alpha Cloud namespace.

Calling the function more than once does not add any overhead.

Example

' Call the register function before other calls.
AlphaCloud::API::Register()